package login

import (
	"5-28zk/common/proto/doctor"
	"5-28zk/service/server"
	"context"
)

type ServerDoctor struct {
	doctor.UnimplementedDoctorServer
}

func (s ServerDoctor) Login(ctx context.Context, resp *doctor.LoginReq) (*doctor.LoginResp, error) {
	login, err := server.Login(resp)
	if err != nil {
		return nil, err
	}
	return login, nil
}
func (s ServerDoctor) PatientList(ctx context.Context, resp *doctor.PatientListReq) (*doctor.PatientListResp, error) {
	login, err := server.PatientList(resp)
	if err != nil {
		return nil, err
	}
	return login, nil
}
func (s ServerDoctor) PatientShow(ctx context.Context, resp *doctor.PatientShowReq) (*doctor.PatientShowResp, error) {
	login, err := server.PatientShow(resp)
	if err != nil {
		return nil, err
	}
	return login, nil
}
